package sma.infos;

import java.util.Vector;

public class InfoCV {
	private InfoPersonnelles ipEmploye;
	
	private float fAnneeExperiences;
	
	//Informatique
	//Construction
	//Communication
	//Services Financiers
	//Tourist ou Hotel
	//Production
	private int iBranche;
	
	private String sNomBranch;
	
	private String sLieuTravail;
	
	private float fSalaireSouhaite;
	
	private Vector aLanguagesEtrangeres;
	
	public void setInfoPersonnelles (InfoPersonnelles ip){
		this.ipEmploye = new InfoPersonnelles();
		this.ipEmploye.setNom(ip.getNom());
		this.ipEmploye.setPreNom(ip.getPreNom());
		this.ipEmploye.setDateNaissance(ip.getDateNaissance());
		this.ipEmploye.setLieuNaissance(ip.getLieuNaissance());
		this.ipEmploye.setAge(ip.getAge());
		this.ipEmploye.setEcoleLycenciePlusRecent(ip.getEcoleLycenciePlusRecent());
		this.ipEmploye.setAnneeLycencieePlusRecent(ip.getAnneeLycencieePlusRecent());
		this.ipEmploye.setSexuel(ip.getSexuel());
		this.ipEmploye.setNiveauEtude(ip.getNiveauEtude());
	}
	
	public InfoPersonnelles getInfoPersonnelles(){
		return this.ipEmploye;
	}
	
	public void setAnneeExperiences(float anneeExperience){
		this.fAnneeExperiences = anneeExperience;
	}
	
	public float getAnneeExperiences(){
		return this.fAnneeExperiences;
	}
	
	public void setBranche(int branche){
		this.iBranche = branche;
	}
	
	public int getBranche(){
		return this.iBranche;
	}
	
	public void setNomBranche(){
		switch(this.iBranche){
		case 1:
			break;
		case 2:
			break;
		default:
			this.sNomBranch = "None";
			break;
		}
	}
	
	public String getNomBranche(){
		return this.sNomBranch;
	}
	
	public void setLieuTravail(String lieu){
		this.sLieuTravail = lieu;
	}
	
	public String getLieuTravail(){
		return this.sLieuTravail;
	}
	
	public void setSalaireSouhaite(float salaire){
		this.fSalaireSouhaite = salaire;
	}
	
	public float getSalaireSouhaite(){
		return this.fSalaireSouhaite;
	}
	
	public void setLanguagesEtrangeres (Vector le){
		this.aLanguagesEtrangeres = new Vector(le.size());
		for (int i = 0; i < le.size(); i++){
			this.aLanguagesEtrangeres.addElement(le.elementAt(i));
		}
	}
	
	public Vector getLanguagesEtrangeres(){
		return this.aLanguagesEtrangeres;
	}
}